<?php
namespace app\api\controller\mjlbb\banner;

use app\common\controller\Api;
use think\Db;
class Banner extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function getbanner()
    {
        $list = Db::table('fa_shopro_banner')
            ->where('status',2)
//            ->where('location',input('location'))
            ->select();
        if(!$list){
            $this->error('轮播图资源为空');
        }
        $this->success('获取系统图片资源', $list);
    }
}